<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023年5月13日
  Time: 10:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--引入前端框架bootstrap--%>
<link rel="stylesheet" href="/webjars/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="/webjars/jquery/3.6.1/jquery.min.js"></script>
<script src="/webjars/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
    .container{
        margin-top: 10px;
    }
    .table{
        text-align: center;
    }
</style>
<html>
<head>
    <title>列表学生</title>
</head>
<body>
   <div class="container">
       <div class="panel panel-primary">
           <div class="panel-heading">
               <h3 class="panel-title">
                   <h4>SSM整合</h4>
               </h3>
           </div>
           <table class="table table-striped table-hover">
               <tr>
                   <td>学号</td>
                   <td>姓名</td>
                   <td>性别</td>
                   <td>年龄</td>
                   <td>住址</td>
                   <td>所在班级</td>
                   <td>操作</td>
               </tr>
               <c:forEach items="${students}" var="stud">
               <tr>
                   <td>${stud.sid}</td>
                   <td>${stud.sname}</td>
                   <td>${stud.sex}</td>
                   <td>${stud.age}</td>
                   <td>${stud.addr}</td>
                   <td>${stud.cname}</td>
                   <td>
                       <div class="btn-group">
                           <a href="#" class="btn btn-primary btn-sm">修改</a>
                           <a href="#" class="btn btn-danger btn-sm">删除</a>
                       </div>
                   </td>
               </tr>
               </c:forEach>
           </table>
           <div class="panel-footer text-right">
               中科2023
           </div>
       </div>
   </div>
</body>
</html>
